<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.Format"%>
<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@page import="firstping.model.Domain"%>
<%@page import="java.util.List"%>
<%@page import="firstping.model.Customer"%>
<%
String title = (String) request.getAttribute("title");
String description = (String) request.getAttribute("description");
String keywords = (String) request.getAttribute("keyword");

String success = (String) request.getAttribute("success");
String customer = (String) session.getAttribute("customer");
List<Domain> domains = (List<Domain>) request.getAttribute("domains");
String[] check = (String[]) request.getAttribute("check");
%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
</jsp:include>
<div id="mainpage">
	<div id="maincontent">
		<h1>Forgot password</h1>

		<div class="box-wrapper">
			<div class="accountinfo">
				<div class="leftside">
					<form action="" method="post" class="form">
							<%=(check[0] != null)?"<p style='color:red;'>"+check[0]+"</p>":"" %>
							<%=(success != null)?"<p style='color:blue;'>"+success+"</p>":"" %>
							<b>Your email</b> : <br/>
							<input type="text" name="email" class="input"/>
							<br/>
							<b>Example</b>: example@yahoo.com
							<br/><br/>
							<%=(check[1] != null)?"<p style='color:red;'>"+check[1]+"</p>":"" %>
							<script>
					        	var RecaptchaOptions = { theme : 'clean' };
					  		</script>
							<%
								//6LdXmcISAAAAAHz6FsABghup-EayldUCiKQyDPAk //public
								//6LdXmcISAAAAANPIv5ykGg3LAlBMnUQHzy3-Kiqo //private
					          ReCaptcha c = ReCaptchaFactory.newReCaptcha("6Lf59ccSAAAAAEM1gkWavS_8iUlhO7GF_Y5GXzts", "6Lf59ccSAAAAANK1ZHc5x_r4dfk6mZQTEJCvjFlo", false);
					          out.print(c.createRecaptchaHtml(null, null));
					        %>
					        <br/>
					        <button class="button-style">Submit</button><br/>
						</form>
				</div>
				<div class="rightside">
					<div class="note">
						<p>To reset your password, type the full email address you use to sign in to your Firstping account.</p>
						<br />
						<p>If you don't have a FirstPing account, you can <a href="/register">create one now</a></p>
					</div>
				</div>

				<div class="clearbreak"></div>
			</div>
		</div>
	</div>
</div>

<jsp:include page="/layout/footer.jsp">
	<jsp:param name="language" value="1"/>
</jsp:include>	